using System;
using System.Configuration;

namespace Rioshu.Web.ViewStateHandlers
{
    public class CachePersisterConfigurationHandler : OutOfPagePersisterConfigurationHandler
    {
        [ConfigurationProperty("slideTime", DefaultValue = "00:20:00")]
        public TimeSpan SlideTime
        {
            get { return (TimeSpan) this["slideTime"]; }
        }

        public static CachePersisterConfigurationHandler GetConfiguration()
        {
            return ConfigurationManager.GetSection("viewStateHandlers/cachePersister") as CachePersisterConfigurationHandler;
        }
    }
}